home *** CD-ROM | disk | FTP | other *** search
/ Champak 130 / Vol 130.iso / games / hummer.swf / scripts / DefineSprite_383_settings / frame_1 / DoAction.as
Encoding:
Text File  |  2007-01-08  |  6.7 KB  |  210 lines

  1. var ┬º\x01┬º = 160;
  2. while(true)
  3. {
  4.    if(eval("\x01") == 160)
  5.    {
  6.       set("\x01",eval("\x01") + 415);
  7.       ┬º┬ºpush(true);
  8.    }
  9.    else
  10.    {
  11.       if(eval("\x01") == 584)
  12.       {
  13.          set("\x01",eval("\x01") - 74);
  14.          break;
  15.       }
  16.       if(eval("\x01") == 510)
  17.       {
  18.          set("\x01",eval("\x01") + 387);
  19.          ┬º┬ºpush(true);
  20.       }
  21.       else if(eval("\x01") == 897)
  22.       {
  23.          set("\x01",eval("\x01") - 257);
  24.          if(┬º┬ºpop())
  25.          {
  26.             set("\x01",eval("\x01") + 135);
  27.          }
  28.       }
  29.       else
  30.       {
  31.          if(eval("\x01") != 575)
  32.          {
  33.             if(eval("\x01") == 640)
  34.             {
  35.                set("\x01",eval("\x01") + 135);
  36.                break;
  37.             }
  38.             if(eval("\x01") == 775)
  39.             {
  40.                set("\x01",eval("\x01") - 147);
  41.                stop();
  42.                closeFunc = function()
  43.                {
  44.                   this.onEnterFrame = function()
  45.                   {
  46.                      _alpha = _alpha - 20;
  47.                      if(_alpha <= 0)
  48.                      {
  49.                         delete this.onEnterFrame;
  50.                         this.removeMovieClip();
  51.                      }
  52.                   };
  53.                };
  54.                continueBtn.b.onPress = function()
  55.                {
  56.                   this = this._parent._parent;
  57.                   _root.soundArc2.playSound("mouseClick",0);
  58.                   closeFunc();
  59.                   if(typeS == 1)
  60.                   {
  61.                      _root.game.pauseGame(false);
  62.                   }
  63.                };
  64.                continueBtn.b.onRollOver = function()
  65.                {
  66.                   _root.soundArc2.playSound("mouseOver2",0);
  67.                };
  68.                endBtn.b.onPress = function()
  69.                {
  70.                   this = this._parent._parent;
  71.                   _root.soundArc2.playSound("mouseClick",0);
  72.                   if(typeS == 1)
  73.                   {
  74.                      _root.gameInfo.currentGame.type = 2;
  75.                      _root.game.zanaves(true);
  76.                   }
  77.                };
  78.                endBtn.b.onRollOver = function()
  79.                {
  80.                   _root.soundArc2.playSound("mouseOver2",0);
  81.                };
  82.                xMin = -57;
  83.                xMax = 80;
  84.                dx = xMax - xMin;
  85.                sBtn.onRollOver = function()
  86.                {
  87.                   _root.soundArc2.playSound("mouseOver2",0);
  88.                   this.gotoAndStop(2);
  89.                };
  90.                sBtn.onRollOut = function()
  91.                {
  92.                   this.gotoAndStop(1);
  93.                };
  94.                sBtn.onPress = function()
  95.                {
  96.                   pressF = true;
  97.                   this = this._parent;
  98.                   _root.soundArc2.playSound("mouseClick",0);
  99.                   sBtn.startDrag(false,xMin,sBtn._y,xMax,sBtn._y);
  100.                };
  101.                sBtn.onRelease = sBtn.onReleaseOutside = function()
  102.                {
  103.                   pressF = false;
  104.                   this = this._parent;
  105.                   sBtn.stopDrag();
  106.                   sBtn.gotoAndStop(1);
  107.                };
  108.                sBtn.onMouseMove = function()
  109.                {
  110.                   this = this._parent;
  111.                   if(pressF == true)
  112.                   {
  113.                      var _loc3_ = Math.round(100 * (sBtn._x - xMin) / dx);
  114.                      _root.gameInfo.settings.effectValue = _loc3_;
  115.                      _level0.localTopScore.data.effectValue = _root.gameInfo.settings.effectValue;
  116.                      _root.soundArc.setValume(_loc3_);
  117.                   }
  118.                };
  119.                mBtn.onRollOver = function()
  120.                {
  121.                   _root.soundArc2.playSound("mouseOver2",0);
  122.                   this.gotoAndStop(2);
  123.                };
  124.                mBtn.onRollOut = function()
  125.                {
  126.                   this.gotoAndStop(1);
  127.                };
  128.                mBtn.onPress = function()
  129.                {
  130.                   pressF = true;
  131.                   this = this._parent;
  132.                   _root.soundArc2.playSound("mouseClick",0);
  133.                   mBtn.startDrag(false,xMin,mBtn._y,xMax,mBtn._y);
  134.                };
  135.                mBtn.onRelease = mBtn.onReleaseOutside = function()
  136.                {
  137.                   pressF = false;
  138.                   this = this._parent;
  139.                   mBtn.stopDrag();
  140.                   mBtn.gotoAndStop(1);
  141.                };
  142.                mBtn.onMouseMove = function()
  143.                {
  144.                   this = this._parent;
  145.                   if(pressF == true)
  146.                   {
  147.                      var _loc3_ = Math.round(100 * (mBtn._x - xMin) / dx);
  148.                      _root.gameInfo.settings.musicValue = _loc3_;
  149.                      _level0.localTopScore.data.musicValue = _root.gameInfo.settings.musicValue;
  150.                      _root.musicArc.setValume(_loc3_);
  151.                   }
  152.                };
  153.                cBtn.onPress = function()
  154.                {
  155.                   pressF = true;
  156.                   this = this._parent;
  157.                   _root.soundArc2.playSound("mouseClick",0);
  158.                   cBtn.startDrag(false,xMin,cBtn._y,xMax,cBtn._y);
  159.                };
  160.                cBtn.onRelease = cBtn.onReleaseOutside = function()
  161.                {
  162.                   pressF = false;
  163.                   this = this._parent;
  164.                   mBtn.stopDrag();
  165.                   mBtn.gotoAndStop(1);
  166.                };
  167.                cBtn.onMouseMove = function()
  168.                {
  169.                   this = this._parent;
  170.                   if(pressF == true)
  171.                   {
  172.                      var _loc3_ = Math.round(100 * (cBtn._x - xMin) / dx);
  173.                      _root.gameInfo.settings.cameraSpeed = 101 - _loc3_;
  174.                      _level0.localTopScore.data.cameraSpeed = _root.gameInfo.settings.cameraSpeed;
  175.                   }
  176.                };
  177.                ini();
  178.                g_1;
  179.                g_2;
  180.                f_1;
  181.                f_2;
  182.                a_1;
  183.                a_2;
  184.                bg.useHandCursor = false;
  185.                bg.onPress = function()
  186.                {
  187.                };
  188.                _X = _X + 240;
  189.                _Y = _Y + 220;
  190.                _alpha = 0;
  191.                this.onEnterFrame = function()
  192.                {
  193.                   _alpha = _alpha + 20;
  194.                   if(_alpha >= 100)
  195.                   {
  196.                      delete this.onEnterFrame;
  197.                   }
  198.                };
  199.             }
  200.             break;
  201.          }
  202.          set("\x01",eval("\x01") + 9);
  203.          if(┬º┬ºpop())
  204.          {
  205.             set("\x01",eval("\x01") - 74);
  206.          }
  207.       }
  208.    }
  209. }
  210.